package com.puao.service;

import com.puao.bean.Ball;
import com.puao.bean.BallIn;

import java.util.List;
import java.util.Map;
import java.util.Map.Entry;


public interface IAnalysisService {

    public List<Entry<String,List<String>>> getCount(Integer begin, Integer end);

    /**
     * FP-GROWTH 算法
     * @param listEntry
     * @return
     */
    public Map<String,Integer> analysis(List<Entry<String,List<String>>> listEntry);

    /**
     * 以前是否出现过
     * @param ball
     * @return
     */
    public boolean isBeforeAppear(BallIn ball);

    /**
     * 查询第1-7个球出现情况
     * @param begin
     * @param end
     * @return
     */
    public List<Map<String,Object>> red01(Integer begin, Integer end);
    public List<Map<String,Object>> red02(Integer begin, Integer end);
    public List<Map<String,Object>> red03(Integer begin, Integer end);
    public List<Map<String,Object>> red04(Integer begin, Integer end);
    public List<Map<String,Object>> red05(Integer begin, Integer end);
    public List<Map<String,Object>> blue01(Integer begin, Integer end);
    public List<Map<String,Object>> blue02(Integer begin, Integer end);


}
